(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/house/repair/edit" ], {
    "2b7e": function(t, e, n) {
        n.r(e);
        var o, r = n("5c11"), i = n("55a6");
        for (o in i) "default" !== o && function(t) {
            n.d(e, t, function() {
                return i[t];
            });
        }(o);
        n("5808");
        var c = n("f0c5"), r = Object(c.a)(i.default, r.b, r.c, !1, null, null, null, !1, r.a, void 0);
        e.default = r.exports;
    },
    "55a6": function(t, e, n) {
        n.r(e);
        var o, r = n("a1c0"), i = n.n(r);
        for (o in r) "default" !== o && function(t) {
            n.d(e, t, function() {
                return r[t];
            });
        }(o);
        e.default = i.a;
    },
    5808: function(t, e, n) {
        var o = n("6de1");
        n.n(o).a;
    },
    "5c11": function(t, e, n) {
        n.d(e, "b", function() {
            return o;
        }), n.d(e, "c", function() {
            return r;
        }), n.d(e, "a", function() {});
        var o = function() {
            this.$createElement;
            this._self._c;
        }, r = [];
    },
    "6de1": function(t, e, n) {},
    "7dd1": function(t, e, o) {
        (function(t) {
            o("767a"), n(o("66fd"));
            var e = n(o("2b7e"));
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = o, t(e.default);
        }).call(this, o("543d").createPage);
    },
    a1c0: function(t, r, i) {
        (function(o) {
            Object.defineProperty(r, "__esModule", {
                value: !0
            }), r.default = void 0;
            var t, e = i("26cb");
            function n(e, t) {
                var n, o = Object.keys(e);
                return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(e), t && (n = n.filter(function(t) {
                    return Object.getOwnPropertyDescriptor(e, t).enumerable;
                })), o.push.apply(o, n)), o;
            }
            (t = i("a345")) && t.__esModule;
            e = {
                components: {},
                data: function() {
                    return {
                        form: {
                            id: 0,
                            contract_id: 0,
                            title: "",
                            mobile: "",
                            album: [],
                            remark: ""
                        }
                    };
                },
                computed: function(o) {
                    for (var t = 1; t < arguments.length; t++) {
                        var r = null != arguments[t] ? arguments[t] : {};
                        t % 2 ? n(Object(r), !0).forEach(function(t) {
                            var e, n;
                            e = o, t = r[n = t], n in e ? Object.defineProperty(e, n, {
                                value: t,
                                enumerable: !0,
                                configurable: !0,
                                writable: !0
                            }) : e[n] = t;
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(r)) : n(Object(r)).forEach(function(t) {
                            Object.defineProperty(o, t, Object.getOwnPropertyDescriptor(r, t));
                        });
                    }
                    return o;
                }({}, (0, e.mapState)({})),
                onLoad: function() {
                    var t = this.$Route.query;
                    this.form.contract_id = t.contract_id, this.init();
                },
                onReady: function() {},
                beforeRouteLeave: function(t, e, n) {
                    console.info("leave"), n();
                },
                methods: {
                    init: function() {},
                    onChooseImg: function(e, t) {
                        var n = this, t = t - e.length;
                        n.$tools.chooseImage(t).then(function(t) {
                            t.forEach(function(t) {
                                n.$tools.uploadFile("file.uploadImage", t).then(function(t) {
                                    e.push(t.data.url);
                                });
                            });
                        });
                    },
                    delImg: function(e, n) {
                        o.showModal({
                            title: "删除照片",
                            content: "确定要删除这张照片么？",
                            cancelText: "取消",
                            confirmText: "删除",
                            success: function(t) {
                                t.confirm && e.splice(n, 1);
                            }
                        });
                    },
                    formSubmit: function(t) {
                        var e = this, n = this.form;
                        0 != n.album.length ? (o.showLoading({
                            mask: !0,
                            title: "正在提交"
                        }), e.$api("user.contract_repair", {
                            id: n.id,
                            title: n.title,
                            album: n.album.join(","),
                            mobile: n.mobile,
                            remark: n.remark,
                            contract_id: n.contract_id
                        }, "post").then(function(t) {
                            o.hideLoading(), 0 == t.errno ? (e.$tools.toast("提交成功"), setTimeout(function() {
                                e.$Router.replace({
                                    path: "/pages/house/repair/list",
                                    query: {}
                                });
                            }, 500)) : e.$tools.toast("异常");
                        })) : e.$tools.toast("请上传问题照片");
                    }
                }
            };
            r.default = e;
        }).call(this, i("543d").default);
    }
}, [ [ "7dd1", "common/runtime", "common/vendor" ] ] ]);